export class Exception extends Error {

}

export class NullReferenceException extends Exception {

}

export class RpcException extends Exception {

    get Error(): number {
        return this.error
    }

    constructor(private error: number, message: string) {
        super(message);
    }
}